showmessage('1░) Exporter votre catalogue en HTML.'+#13#10+'> Complet : PDA_template_full.html'+#13#10+'> Individuel : PDA_template_indiv.html'+#13#10+'2░) Installer HTML Help Workshop de Microsoft'+#13#10+'> Lien dans ''Options'''+#13#10+'3░) Configuration des options'+#13#10+'> Nom des fichiers, liens vers le catalogue...'+#13#10+'4░) CrΘation du fichier HHP'+#13#10+'> Fichier de configuration nΘcessaire pour la crΘation du fichier CHM'+#13#10+'4░) CrΘation du fichier CHM'+#13#10+'> Compilation des pages HTML en un fichier CHM'+#13#10#13#10+'Les fichiers CHM sont lisibles sur tout les postes Windows, et sur les Pocket PC.'+#13#10#13#10+'Pour les Pocket Pc, il est nΘcessaire d''installer ''CHM reader.Net'' ou ''CHM eBook Reader''.');
Value := choixFichier('RΘpertoire de HTML Help Workshop', 'Entrer le chemin vers le rΘpertoire de HTML Help Workshop', PathHHW);
if (copy(Value,length(Value),length(Value)) <> '\') then
Value := Value+'\';
SetStatic('PathHHW',Value);
PathHHW := GetStatic('PathHHW');
menuConfig();
end;
procedure nomduCatalog();
begin
NomCatalog := GetStatic('CatalogName');
Value := choixFichier('Nom du CHM crΘΘ', 'Entrer le nom du CHM que vous voulez crΘer', NomCatalog);
SetStatic('CatalogName',Value);
NomCatalog := GetStatic('CatalogName');
menuConfig();
end;
procedure nomduHTML();
begin
NomHTML := GetStatic('HTMLName');
Value := choixFichier('Chemin du fichier exporter en HTML Complet', 'Entrer le chemin vers le fichier HTML (Export Complet)'+#13#10+'Doit terminer par .htm ou .html', NomHTML);
if (pos('.htm',Value) = 0) then
Value := 'Lien vers votre catalogue au format HTML.';
if (ShowConfirmation('CrΘation du fichier CHM : '+#13#10+'Le fichier crΘΘ sera : '+#13#10#13#10+PathHHW+NomCatalog+'.chm'+#13#10#13#10+'Cliquer sur ''OUI'' pour valider.'+#13#10+'Cliquer sur ''NON'' pour annuler.') = True) then
begin
CreateHHP();
Drive := copy(PathHHW,0,2);
hhpfile := TStringList.Create;
hhpfile.Add('@echo on');
hhpfile.Add(Drive);
hhpfile.Add('cd "'+PathHHW+'"');
hhpfile.Add('hhc '+NomCatalog+'.hhp');
if GetOption('Afficher le CHM final') = 0 then
hhpfile.Add('start '+NomCatalog+'.chm');
hhpfile.Add('del -f '+NomCatalog+'.hhp');
hhpfile.Add('del -f '+NomCatalog+'.bat');
hhpfile.SaveToFile(PathHHW+NomCatalog+'.bat');
hhpfile.Free;
Launch(PathHHW+NomCatalog+'.bat','');
showmessage('Le catalogue au format CHM a bien ΘtΘ crΘΘ.'+#13#10#13#10+'Le fichier '''+NomCatalog+'.chm'' se trouve dans le rΘpertoire '''+PathHHW+'''.');